# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>
# Contributors: Bmauet <careil.baptiste@gmail.com>
pkgname=bam
pkgver=0.5.1
pkgrel=2
pkgdesc="A fast and flexible build system using Lua"
arch=('loong64' 'x86_64')
url=http://github.com/matricks/bam
license=('ZLIB')
source=("$pkgname-$pkgver.tar.gz::https://github.com/matricks/bam/archive/v${pkgver}.tar.gz")
sha512sums=('e6f1b3daad6073c58b0e3cbf836bb0a6b66f0c36532d6e6eca9949239ab8b584cc88f892cce6f74974e370a8a688f33a95dde86dd65cc1790e49e5f8aeab0fef')

build() {
  cd ${pkgname}-${pkgver}
  sh make_unix.sh
}

package() {
  cd ${pkgname}-${pkgver}
  install -Dm755 bam "${pkgdir}"/usr/bin/bam
  install -Dm755 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}
